import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import Home from './views/Home.vue'
import My from './views/My.vue'
import Find from './views/Find.vue'
import Search from './views/Search.vue'



Vue.config.productionTip = false

Vue.use(VueRouter) //插件初始化
//创建空路由对象
const router = new VueRouter({
  routes: [
    { path: '/home', component: Home },
    { path: '/find', component: Find },
    { path: '/my', component: My },
    { path: '/search', component: Search }
  ]
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
